NULL = 

AUTOMAKE_OPTIONS = subdir-objects

SUBDIRS = \
	$(NULL)

AM_CPPFLAGS = \
	$(APPENDAGE_CFLAGS) \
	-DPACKAGE_DATADIR=\""$(pkgdatadir)"\" \
	-include $(CONFIG_HEADER) \
	$(NULL)

BUILT_SOURCES = libappendage.vala.stamp

libappendagedir = $(libdir)

libappendage_LTLIBRARIES = libappendage.la

libappendage_la_VALASOURCES = \
	Appendage.vala \
	ModuleLoader.vala \
	Plugin.vala \
	PluginInfo.vala \
	PluginsEngine.vala \
	$(NULL)

libappendage_la_SOURCES = \
	$(libappendage_la__VALASOURCES:.vala=.c) \
	$(libappendage_la__VALASOURCES:.vala=.h) \
	$(NULL)

libappendageincludedir = $(includedir)/appendage-1.0/appendage

libappendageinclude_HEADERS = \
	Appendage.h \
	ModuleLoader.h \
	Plugin.h \
	PluginInfo.h \
	PluginsEngine.h \
	$(NULL)

libappendage.vala.stamp: $(libappendage_la_VALASOURCES)
	$(VALAC) -C --library=appendage-1.0 --pkg gio-2.0 --pkg gee-1.0 --pkg gmodule-2.0 --pkg gconf-2.0 --pkg config --vapidir $(top_srcdir)/vapi --basedir $(top_srcdir) $^
	touch $@

libappendage_la_LDFLAGS = \
	$(PLUGIN_LIBTOOL_FLAGS) \
	-avoid-version \
	$(NULL)

libappendage_la_LIBADD = \
	$(APPENDAGE_LIBS) \
	$(NULL)

libappendagevapidir = ${datadir}/vala/vapi
libappendagevapi_DATA = appendage-1.0.vapi

EXTRA_DIST = \
	$(libappendage_la_VALASOURCES) \
	libappendage.vala.stamp \
	appendage-1.0.vapi \
	$(NULL)

DISTCLEANFILES = \
	$(NULL)

